/**
 * 文本过滤器
 * @params datasets 数据
 */
export function textFilterFormat(datasets) {
  const { dimensions } = datasets;
  const seriesData = datasets.source.map((item) => ({
    label: item[dimensions.xAxis],
    value: item[dimensions.xAxis],
  }));
  return {
    seriesData,
  };
}
